import request from '@/utils/request'

// 查询机电设施故障月报列表
export function listJidiansheshiguzhangyuebaobiao(query) {
  return request({
    url: '/biz/jidiansheshiguzhangyuebaobiao/list',
    method: 'get',
    params: query
  })
}

// 查询机电设施故障月报详细
export function getJidiansheshiguzhangyuebaobiao(id) {
  return request({
    url: '/biz/jidiansheshiguzhangyuebaobiao/' + id,
    method: 'get'
  })
}

// 新增机电设施故障月报
export function addJidiansheshiguzhangyuebaobiao(data) {
  return request({
    url: '/biz/jidiansheshiguzhangyuebaobiao',
    method: 'post',
    data: data
  })
}

// 修改机电设施故障月报
export function updateJidiansheshiguzhangyuebaobiao(data) {
  return request({
    url: '/biz/jidiansheshiguzhangyuebaobiao',
    method: 'put',
    data: data
  })
}

// 删除机电设施故障月报
export function delJidiansheshiguzhangyuebaobiao(id) {
  return request({
    url: '/biz/jidiansheshiguzhangyuebaobiao/' + id,
    method: 'delete'
  })
}

// 导出机电设施故障月报
export function exportJidiansheshiguzhangyuebaobiao(query) {
  return request({
    url: '/biz/jidiansheshiguzhangyuebaobiao/export',
    method: 'get',
    params: query
  })
}